#ifndef _ADDNODE_H_
#define _ADDNODE_H_

#include "ExprNode.h"

class AddNode : public ExprNode {
protected:
    ExprNode *left, *right;
public:
    AddNode(ExprNode *left, Token *add_token, ExprNode *right):
        ExprNode(add_token), left(left), right(right) { }
    void print() {
        left->print();
        cout << "+";
        right->print();
    }
};

#endif
